﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using KPIS.GERP.GHRMS.MODEL;

namespace KPIS.GERP.GHRMS.IBLL
{
    public interface IAbsenceRuleBLL
    {
        IList<rule_absence> GetAbsenceRulesByEmpSeq(string emp_seq);
        IList<rule_absence> GetAbsenceRules(string emptypeseq, string abstypeseq);

        IList<AbsenceRuleInfo> ListAbsenceRules(string EmployeeType);

        IList<AbsenceRuleInfo> ListAbsenceRulesBySequence(int Sequence);

        void Insert(string EmployeeType, string AbsenceType, decimal QuotaDay, decimal QuotaSaliary, decimal QuotaHalfSaliary
                    , decimal QuotaCount, decimal DayPerCount, string Remarks, int CreatedBy
                    , bool inclNonWorkingDay, AbsenceRuleInfo.UseSendBeforeEnum useSendBeforeEnum, decimal sendBefore);

        void Update(int Sequence, string EmployeeType, string AbsenceType, decimal QuotaDay, decimal QuotaSalary, decimal QuotaHalfSaliary
                    , decimal QuotaCount, decimal DayPerCount, string Remarks, int UpdatedBy
                    , bool inclNonWorkingDay, AbsenceRuleInfo.UseSendBeforeEnum useSendBeforeEnum, decimal sendBefore);

        void Delete(int Sequence, int UpdatedBy);
    }
}